<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('查询商编明细')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>
                        <li>
                            <label style="width: 150px;">商户编号：</label>
                            <input type="text" name="bno"/>
                        </li>
                        <li>
                            <label style="width: 150px;">商户名称：</label>
                            <input type="text" name="note"/>
                        </li>
                        <li>
                            <label style="width: 150px;">商户状态：</label>
                            <input type="text" onkeyup="value=value.replace(/[^\d]/g,'')" name="status"/>
                        </li>
                        <li>
                            <label style="width: 150px;">费率类型：</label>
                            <input type="text" onkeyup="value=value.replace(/[^\d]/g,'')" name="ratetype"/>
                        </li>
                        <li>
                            <label style="width: 150px;">通道交易上限笔数：</label>
                            <input type="text" onkeyup="value=value.replace(/[^\d]/g,'')" name="countserial"/>
                        </li>
                        <li>
                            <label style="width: 150px;">通道交易上限金额：</label>
                            <input type="text" onkeyup="value=value.replace(/[^\d]/g,'')" name="summoney"/>
                        </li>
                        <li>
                            <label style="width: 150px;">省代码：</label>
                            <input type="text" name="area"/>
                        </li>
                        <li>
                            <label style="width: 150px;">市代码：</label>
                            <input type="text" name="areas"/>
                        </li>
                        <li>
                            <label style="width: 150px;">是否支持双免：</label>
                            <input type="text" oninput="value=value.replace(/[^\d]/g,'')" name="ismis"/>
                        </li>
                        <li>
                            <label style="width: 150px;">备注2：</label>
                            <input type="text"  name="note2"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('tBankinfo:tBankinfo:edit')}]];
    var prefix = ctx + "tBankinfo/tBankinfo";
    $(function()  {
        var options = {
            url: prefix + "/listTBankInfoMap",
            updateUrl: prefix + "/edit/{id}",
            showSearch: false,
            showRefresh: false,
            showToggle: false,
            showColumns: false,
            clickToSelect:true,
            columns: [
                {
                    field: 'TID',
                    title: '主键序列',
                    visible: false
                },
                {
                    field : 'TBID',
                    title : '渠道编号'
                },
                {
                    field : 'BID',
                    title : '通道编号'
                },
                {
                    field : 'BNO',
                    title : '渠道商户编号'
                },
                {
                    field : 'NOTE',
                    title : '商户名称',
                    formatter:function (value, row, index) {
                        return $.table.tooltip(value,3);
                    }
                },
                {
                    field : 'BANKTYPE',
                    title : '通道类型'
                },
                {
                    field : 'RATETYPE',
                    title : '费率类型'
                },
                {
                    field : 'LOCALLEVEL',
                    title : '优先级别'
                },
                {
                    field : 'STANDARDRATE',
                    title : '借记卡标准'
                },
                {
                    field : 'STATUS',
                    title : '状态'
                },
                {
                    field : 'COUNTSERIAL',
                    title : '通道交易上限笔数'
                },
                {
                    field : 'NOWCOUNTSERIAL',
                    title : '通道当日交易现有笔数'
                },
                {
                    field: 'SUMMONEY',
                    title: '通道交易上限金额',
                    formatter: function (value, row, index) {
                        return $.table.rmbFormatter(value);
                    }
                },
                {
                    field: 'NOWSUMMONEY',
                    title: '通道当日交易现有金额',
                    formatter: function (value, row, index) {
                        return $.table.rmbFormatter(value);
                    }
                },
                {
                    field: 'MINMONEY',
                    title: '通道允许的最小金额',
                    formatter: function (value, row, index) {
                        return $.table.rmbFormatter(value);
                    }
                },
                {
                    field: 'MAXMONEY',
                    title: '通道允许的最大金额',
                    formatter: function (value, row, index) {
                        return $.table.rmbFormatter(value);
                    }
                },
                {
                    field : 'SINGLERATE',
                    title : '贷记卡标准'
                },
                {
                    field : 'SUPPORTEDCARD',
                    title : '支持的卡类型'
                },
                {
                    field : 'SINGLEMONEY',
                    title : '贷记卡封顶'
                },
                {
                    field : 'BORROWCARD',
                    title : '支持的借贷记卡'
                },
                {
                    field : 'STANDARDMONEY',
                    title : '借记卡封顶'
                },
                {
                    field : 'ISLOAD',
                    title : '加载状态'
                },
                {
                    field : 'ISUER',
                    title : '所属商编池'
                },
                {
                    field : 'AFTERH',
                    title : '可交易前时间'
                },
                {
                    field : 'BEFORH',
                    title : '可交易后时间'
                },
                {
                    field : 'BEFOREHOUR',
                    title : '可交易前时间'
                },
                {
                    field : 'AFTERHOUR',
                    title : '可交易后时间'
                },
                {
                    field : 'ISMIS',
                    title : '是否支持双免'
                },
                {
                    field : 'MCC',
                    title : '行业码'
                },
                {
                    field : 'AREA',
                    title : '省'
                },
                {
                    field : 'AREAS',
                    title : '市'
                },
                {
                    field : 'AREAQ',
                    title : '区'
                },
                {
                    field : 'REMARKS',
                    title : '备注(原因)'
                },
                {
                    field : 'BNOTYPE',
                    title : '特计类商编'
                },
                {
                    field : 'BANKBNO',
                    title : '渠道真实商编'
                },
                {
                    field : 'ISSHORT',
                    title : '短商户'
                },
                {
                    field : 'NOTE2',
                    title : '备注2'
                },
                {
                    field : 'IS23',
                    title : 'IS23'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.TID + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        return actions.join('');
                    }
                }


            ]
        };
        $.table.init(options);
    });
</script>
</body>
</html>